//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.wsd.smartcarwasher.dao;

import com.wsd.smartcarwasher.domain.MessageRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

import java.util.Date;
import java.util.List;

public interface RecordDao {
    int addRecord(MessageRecord messageRecord) throws DataAccessException;

    List<MessageRecord> queryMessageRecords(@Param("machineId") String machineId, @Param("orderSn") String orderSn, @Param("level") String level, @Param("eventCode") String eventCode, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("status") Integer status) throws DataAccessException;
    //手洗事件记录
    List<MessageRecord> queryOfflineMessageRecords(@Param("machineId") String machineId, @Param("level") String level, @Param("eventCode") String eventCode, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("status") Integer status) throws DataAccessException;

    int changeRecordStatus(MessageRecord messageRecord) throws DataAccessException;
}
